package com.qqtech.qquan.user.model;

import java.math.BigDecimal;
import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class UserSpoor extends BaseDomain {

	// columns START
	/** 用户id */
	private java.lang.Integer userId;
	/** 设备唯一标识 */
	private java.lang.String deviceId;
	/** 手机设备上的手机号码 */
	private java.lang.String devicePhone;
	/** 经度 */
	private BigDecimal x;
	/** 纬度 */
	private BigDecimal y;
	/** IP */
	private java.lang.String ip;
	/** 地址 */
	private java.lang.String address;

	/** 客户端内容版本 */
	private java.lang.String contentVersion;
	/** 服务端内容版本 */
	private java.lang.String contentServerVersion;
	/** 客户端原生版本 */
	private java.lang.String nativeVersion;
	/** 服务端原生版本 */
	private java.lang.String nativeServerVersion;
	/** 客户端设备推送id */
	private String registrationId;
	/**
	 * 服务端版本发布的时间
	 */
	private Timestamp pubAt;

	// columns END
	public UserSpoor() {
	}

	public UserSpoor(java.lang.Integer id) {
		this.id = id;
	}

	public void setUserId(java.lang.Integer userId) {
		this.userId = userId;
	}

	public java.lang.Integer getUserId() {
		return this.userId;
	}

	public void setDeviceId(java.lang.String deviceId) {
		this.deviceId = deviceId;
	}

	public java.lang.String getDeviceId() {
		return this.deviceId;
	}

	public void setDevicePhone(java.lang.String devicePhone) {
		this.devicePhone = devicePhone;
	}

	public java.lang.String getDevicePhone() {
		return this.devicePhone;
	}

	public void setX(BigDecimal x) {
		this.x = x;
	}

	public BigDecimal getX() {
		return this.x;
	}

	public void setY(BigDecimal y) {
		this.y = y;
	}

	public BigDecimal getY() {
		return this.y;
	}

	public java.lang.String getIp() {
		return ip;
	}

	public void setIp(java.lang.String ip) {
		this.ip = ip;
	}

	public void setAddress(java.lang.String address) {
		this.address = address;
	}

	public java.lang.String getAddress() {
		return this.address;
	}

	public java.lang.String getContentVersion() {
		return contentVersion;
	}

	public void setContentVersion(java.lang.String contentVersion) {
		this.contentVersion = contentVersion;
	}

	public java.lang.String getContentServerVersion() {
		return contentServerVersion;
	}

	public void setContentServerVersion(java.lang.String contentServerVersion) {
		this.contentServerVersion = contentServerVersion;
	}

	public java.lang.String getNativeVersion() {
		return nativeVersion;
	}

	public void setNativeVersion(java.lang.String nativeVersion) {
		this.nativeVersion = nativeVersion;
	}

	public java.lang.String getNativeServerVersion() {
		return nativeServerVersion;
	}

	public void setNativeServerVersion(java.lang.String nativeServerVersion) {
		this.nativeServerVersion = nativeServerVersion;
	}

	public String getRegistrationId() {
		return registrationId;
	}

	public void setRegistrationId(String registrationId) {
		this.registrationId = registrationId;
	}

	public Timestamp getPubAt() {
		return pubAt;
	}

	public void setPubAt(Timestamp pubAt) {
		this.pubAt = pubAt;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
}
